package com.jeesite.modules.inventoryclass.service;

import java.util.List;

import com.jeesite.modules.common.vo.CommonSelectDataVO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.TreeService;
import com.jeesite.modules.inventoryclass.entity.InventoryClass;
import com.jeesite.modules.inventoryclass.dao.InventoryClassDao;

/**
 * 存货分类Service
 * @author 码脑洞
 * @version 2025-04-13
 */
@Service
public class InventoryClassService extends TreeService<InventoryClassDao, InventoryClass> {
	
	/**
	 * 获取单条数据
	 * @param inventoryClass
	 * @return
	 */
	@Override
	public InventoryClass get(InventoryClass inventoryClass) {
		return super.get(inventoryClass);
	}
	
	/**
	 * 查询分页数据
	 * @param inventoryClass 查询条件
	 * @param inventoryClass page 分页对象
	 * @return
	 */
	@Override
	public Page<InventoryClass> findPage(InventoryClass inventoryClass) {
		return super.findPage(inventoryClass);
	}
	
	/**
	 * 查询列表数据
	 * @param inventoryClass
	 * @return
	 */
	@Override
	public List<InventoryClass> findList(InventoryClass inventoryClass) {
		return super.findList(inventoryClass);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param inventoryClass
	 */
	@Override
	@Transactional
	public void save(InventoryClass inventoryClass) {
		super.save(inventoryClass);
	}
	
	/**
	 * 更新状态
	 * @param inventoryClass
	 */
	@Override
	@Transactional
	public void updateStatus(InventoryClass inventoryClass) {
		super.updateStatus(inventoryClass);
	}
	
	/**
	 * 删除数据
	 * @param inventoryClass
	 */
	@Override
	@Transactional
	public void delete(InventoryClass inventoryClass) {
		super.delete(inventoryClass);
	}

	public List<CommonSelectDataVO> selectInventoryClassList() {
		return dao.selectInventoryClassList();
	}
}